import Cookies from 'js-cookie'

const TokenKey = 'vue_admin_template_token'

export function getToken () {
  return Cookies.get(TokenKey) //  获取
}

export function setToken (token) {
  return Cookies.set(TokenKey, token) // 设置
}

export function removeToken () {
  return Cookies.remove(TokenKey) // 删除
}
